package com.cvit.cn.dao;

import com.cvit.cn.bean.Manager;
import com.cvit.cn.bean.ManagerExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ManagerMapper {
    long countByExample(ManagerExample example);

    int deleteByExample(ManagerExample example);

    //根据id删除
    int deleteByPrimaryKey(String id);

    int insert(Manager record);
    
    //添加用户账号密码
    int insertManager(Manager record);

    int insertSelective(Manager record);

    List<Manager> selectByExample(ManagerExample example);

    Manager selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Manager record, @Param("example") ManagerExample example);

    int updateByExample(@Param("record") Manager record, @Param("example") ManagerExample example);

    int updateByPrimaryKeySelective(Manager record);

    int updateByPrimaryKey(Manager record);

	//查询供应商账号和密码
    Manager selectByIdManager(String name, String password, String role);

	//修改密码
	int updataManager(Manager manager);

	//查询管理员账号和密码
	Manager selectByIdSupplier(String id, String password, String role);


}